package com.hx.enums;

/**
 * @author jxlgcmh
 * @create 2019-05-12 09:17
 */
public enum EnumSeasons {
    /**
     * 对象的构建要写在首行，默认是修饰符是public static final ，并且把相同的地方删除，默认格式如下
     * 相同对象之间用逗号“ ，” 隔开
     */
    SPRING("春天", "春暖花开"),
    SUMMER("夏天", "夏日炎炎"),
    AUTUMN("秋天", "秋高气爽"),
    WINTER("冬天", "冬雪皑皑");

    private final String seasonName;
    private final String seasonDesc;

    /**
     * 私有化构造器
     */
    EnumSeasons(String seasonName, String seasonDesc) {
        this.seasonName = seasonName;
        this.seasonDesc = seasonDesc;
    }

    public String getSeasonName() {
        return seasonName;
    }

    public String getSeasonDesc() {
        return seasonDesc;
    }

    @Override
    public String toString() {
        return "EnumSeasons{" +
                "seasonName='" + seasonName + '\'' +
                ", seasonDesc='" + seasonDesc + '\'' +
                '}';
    }
}
